const config = require('./config')
const db = require('./db')

// 更改条目
const sql = `
  UPDATE fs
  SET io = $io, type = $type, device = $device, mount = $mount, share = $share
  WHERE uuid = $uuid;`;

db.run(sql, {
  $uuid: config.fs.uuid,
  $io: config.fs.io,
  $type: config.fs.type,
  $device: config.fs.device,
  $mount: config.fs.mount,
  $share: config.fs.share,
  }, err => {
    if (err) return console.log(err.message)

    console.log('修改成功')

})